<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_m_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_m_02')?></a>
        <a href="<?=site_url('upgrade')?>"><?=L('tpl_m_03')?></a>
    </span>
    <blockquote class="layui-elem-quote" style="margin-top: 10px;">
    	<?=L('tpl_m_04')?></blockquote>
	<table class="layui-table">
	    <colgroup>
	    </colgroup>
	    <thead>
	        <tr>
	            <th><?=L('tpl_m_05')?></th>
	            <th><?=L('tpl_m_06')?></th>
	            <th><?=L('tpl_m_07')?></th>
	        </tr>
	    </thead>
	    <tbody>
	        <tr>
	            <td><?=count($diff)?></td>
	            <td><?=count($lostfile)?></td>
	            <td><?=count($unknowfile)?></td>
	        </tr>
	    </tbody>
	</table>

	<?php if(!empty($diff)) {?>
	<table class="layui-table">
		<thead>
			<tr>
				<th><?=L('tpl_m_08')?></th>
				<th><?=L('tpl_m_09')?></th>
				<th><?=L('tpl_m_10')?></th>
				<th><?=L('tpl_m_11')?></th>
			</tr>
		</thead>
	<tbody>
	<?php
		foreach($diff as $k=>$v) {
	?>
    <tr>
		<td><?php echo base64_decode($k)?></td>
		<td><?php echo date("Y-m-d H:i:s", filemtime(base64_decode($k)))?></td>
		<td><?php echo formatsize(filesize(base64_decode($k)))?></td>
		<td><a href="javascript:cscms.get_open('<?=site_url('upgrade/look')?>?path=<?=base64_decode($k)?>','<?=L('tpl_m_12')?>','700px','500px',)"><?=L('tpl_m_13')?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo Web_Path,base64_decode($k);?>" target="_blank"><?=L('tpl_m_14')?></a></td>
    </tr>
	<?php
		}
	?>
	</tbody>
	</table>
	<?php }?>

	<?php if(!empty($unknowfile)) {?>
	<table class="layui-table">
		<thead>
			<tr>
				<th><<?=L('tpl_m_07')?></th>
				<th><?=L('tpl_m_09')?></th>
				<th><?=L('tpl_m_10')?></th>
				<th><?=L('tpl_m_11')?></th>
			</tr>
		</thead>
	<tbody>
	<?php
		foreach($unknowfile as $k=>$v) {
	?>
	    <tr>
			<td><?php echo base64_decode($v)?></td>
			<td><?php echo date("Y-m-d H:i:s", filemtime(base64_decode($v)))?></td>
			<td><?php echo formatsize(filesize(base64_decode($v)))?></td>
			<td><a href="javascript:cscms.get_open('<?=site_url('upgrade/look')?>?path=<?=base64_decode($v)?>','<?=L('tpl_m_12')?>','700px','500px',)" "><?=L('tpl_m_13')?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo Web_Path,base64_decode($v);?>" target="_blank"><?=L('tpl_m_14')?></a></td>
	    </tr>
	<?php
		}
	?>
	</tbody>
	</table>
	<?php }?>

	<?php if(!empty($lostfile)) {?>
	<table class="layui-table">
		<thead>
			<tr>
				<th><?=L('tpl_m_15')?></th>
			</tr>
		</thead>
	<tbody>
	<?php
		foreach($lostfile as $k) {
	?>
	    <tr>
			<td><?php echo base64_decode($k)?></td>
	    </tr>
	<?php
		}
	?>
	</tbody>
	</table>
	<?php }?>
</body>
</html>
